<?php

/**
 * Description of formContent
 *
 * @author Kam
 */
class My_View_Helper_FormDynamicElements extends Zend_View_Helper_FormTextarea {

    public function formDynamicElements($name, $value = null, $attribs = null) {
        $info = $this->_getInfo($name, $value, $attribs);
        extract($info); // name, value, attribs, options, listsep, disable
        $this->view->headScript()->captureStart();
        ?>
$(function() {
    $('#<?= $id ?>').on('change', function() {
        var val = $(this).val();
        console.log(val);
    });
});
        <?php
        $this->view->headScript()->captureEnd();
        return '';
    }

}
